import http from "@/api";

/**
 * @name 股票
 */
// 股票列表
export const stockListApi = (params) => {
  return http.get(`/stock/plan/` + params, { loading: true });
};
// 股票详情
export const stockInfoApi = (params) => {
  return http.get(`/stock/info/` + params, { loading: true });
};
// 新增股票
export const stockSaveApi = (params) => {
  return http.post(`/stock/plan`, params, { loading: false });
};
// 可选时间
export const getdaysApi = (params) => {
  return http.get(`/tradingdate/getdays`, {...params}, { loading: true });
};
// 删除股票
export const stockDelApi = (id) => {
  return http.delete(`/stock/` + id, {}, { loading: true });
};
// 更新股票
export const stockEditApi = (id,params) => {
  return http.put(`/stock/` + id, params, { loading: true });
};